interface FormItemProps {
  id?: number;
  /** 用于判断是`新增`还是`修改` */
  title: string;
  bizType: string | number;
  name: string;
  phone: string | number;
  password: string;
  roleIdList: number[];
  managerStoreIdList: number[];
  depositoryIdList: number[];
  supplierIdList: number[];
  roleOptions?: any[];
  storeOptions?: any[];
  depositoryOptions?: any[];
  supplierOptions?: any[];
}
interface FormProps {
  formInline: FormItemProps;
}

interface RoleFormItemProps {
  username: string;
  nickname: string;
  /** 角色列表 */
  roleOptions: any[];
  /** 选中的角色列表 */
  ids: Record<number, unknown>[];
}
interface RoleFormProps {
  formInline: RoleFormItemProps;
}

interface DetailFormItemProps {
  showType: number;
  idList: number[];
  collapseList: [];
  storeOptions: any[];
  depositoryOptions: any[];
  supplierOptions: any[];
}
interface DetailFormProps {
  formInline: DetailFormItemProps;
}

export type {
  FormItemProps,
  FormProps,
  RoleFormItemProps,
  RoleFormProps,
  DetailFormProps
};
